﻿using System;
using System.Collections.Specialized;

namespace MyAMS.WebServer.Plugins
{
    /// <summary>
    /// 插件
    /// </summary>
    public interface IPlugin
    {
        /// <summary>
        /// 获取插件ID
        /// </summary>
        Guid ID { get; }

        /// <summary>
        /// 获取插件名称
        /// </summary>
        string Name { get; }

        /// <summary>
        /// 获取插件设置
        /// </summary>
        NameValueCollection Settings { get; }

        /// <summary>
        /// 获取一个值, 该值指示当前实例是否被启用
        /// </summary>
        bool Enabled { get; set; }

        /// <summary>
        /// 刷新插件配置
        /// </summary>
        void RefreshSettings();
    }
}
